﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;

namespace Engine.Dtd.Schema {
    /// <summary>
    /// Provides an external entity.
    /// </summary>
    /// <remarks>
    /// There are two types of external entities: private and public. Private external entities are identified by the "SYSTEM" keyword,
    /// and are intended for use by a single author or group of authors. Public external entities are identified by the keyword "PUBlIC" and
    /// are intended for broad use.
    /// </remarks>
    [DebuggerDisplay("{Name}")]
    internal sealed class DExternalEntity : DEntity {
        /// <summary>
        /// Gets the public identifier of this entity.
        /// </summary>
        /// <remarks>
        /// This may be used by an XML processor to generate an alternate URI where the external parsed entity can be found. 
        /// If it cannot be found at this URI, the XML processor must use the normal URI.
        /// </remarks>
        public string Public { get; internal set; }
        /// <summary>
        /// Gets or sets the location, path or URL, where the external parsed entity can be found.
        /// </summary>
        public string System { get; set; }
        }
    }
